<?php
defined('BASEPATH') OR exit('No direct script access allowed');

class Home extends MY_Controller {
	
	public function __construct(){
		parent::__construct();
       	$this->load->model('Categoryes_model');
	}
	
	public function index(){
		
		/*在视图中使用calendar类*/
	    $this->load->library('calendar');
	
		/*获取栏目放入data数组*/
    	$data=array(
	         'categoryes'=>$this->Categoryes_model->get_categoryes()
	          );
	    /*分配并显示栏目信息*/
	    $this->load->view('home',$data);
	}
}
